/**
 * 左侧菜单栏
 * 根据用户权限进行分类
 */
import UserType from './userType';
let SideBarItems = {};
// 路由管理，consloe报错是因为设置多个/admin，并且呈现蓝色。后期添加路由可修改
SideBarItems.items = [
    {
        //可视化大屏
        userType:UserType.admin,
        icon:"el-icon-s-data",
        // title:"可视化大屏",
        title:"",
        index:0,
        data:[
            {
                index:"/timeData",  
                // title:"实时数据"
                title:""
            },
            {
                index:"/admin",
                // title:"已选企业"
                title:""
            },
            {
                index:"/admin",
                // title:"未选企业"
                title:""
            },
            {
                index:"/admin",
                // title:"已选未达标企业"
                title:""
            },
            {
                index:"/admin",
                // title:"特殊情况"
                title:""
            }
        ]
    },
    {
        //企业信息
        userType:UserType.admin,
        icon:"el-icon-data-line",
        // title:"企业信息",
        title:"",
        index:1,
        data:[
            {
                index:"/bussBaseInfo",
                // title:"基本信息"
                title:""
            },
            {
                index:"/admin",
                // title:"统计信息",
                title:""
            },
            {
                index:"/admin",
                // title:"暂无"
                title:""
            },
        ]
    },
    {
        //电网信息
        userType:UserType.admin,
        icon:"el-icon-document",
        // title:"电网信息",
        title:"",
        index:2,
        data:[
            {
                index:"/queueUseEle",
                // title:"有序用电"
                title:""
            },
            {
                index:"/lineTable",
                // title:"有序用电安排表"
                title:""
            },
            {
                index:"/",
                // title:"公告"
                title:""
            },
            {
                index:"/",
                // title:"特殊情况"
                title:""
            },
            {
                index:"/failStand",
                //title:"未选企业"
                title:""
            }
        ]
    },
    {
        //权限管理
        userType:UserType.admin,
        icon:"el-icon-user",
        // title:"权限管理",
        title:"",
        index:3,
        data:[
            {
                index:"/admin",
                // title:"暂无"
                title:""
            }
        ]
    }
];
export default SideBarItems;
